package com.yh.ldzl;

import com.ruoyi.common.security.annotation.EnableCustomConfig;
import com.ruoyi.common.security.annotation.EnableRyFeignClients;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableCustomConfig
@EnableRyFeignClients(basePackages = {"com.ruoyi", "com.yh.ldzl"})
@SpringBootApplication
@MapperScan("com.yh.ldzl.mapper")
@ComponentScan(basePackages = {"com.yh.ldzl", "com.ruoyi.system.api.factory"})
@EnableScheduling // 启用定时任务功能
public class LdzlZlApplication {
    private static final Logger logger = LoggerFactory.getLogger(LdzlZlApplication.class);

    public static void main(String[] args) {
        logger.info("正在启动质检模块，WebSocket配置将被加载...");
        SpringApplication.run(LdzlZlApplication.class, args);
        logger.info("质检模块启动完成，WebSocket服务和定时任务已启用");
    }

}
